package day04;

import java.util.Scanner;

public class Method03 {                                         //寻找数组中是否存在某值的方法
    public static boolean ifexist(int[]arr,int num){
        boolean flag = false;
        for (int i = 0; i < arr.length; i++)
            if(arr[i]==num) flag=true;
        return flag;
    }
    public static void main(String[] args) {
        int[] arr1={1,2,3,4,5};
        Scanner sc=new Scanner(System.in);
        int num1=sc.nextInt();
        System.out.println(ifexist(arr1,num1));
    }
}
